feat: add E2E tests for Textual TUI and Playwright web frontend#52
Merged
cristipufu merged 3 commits intomainfrom Feb 12, 2026
Merged
feat: add E2E tests for Textual TUI and Playwright web frontend#52cristipufu merged 3 commits intomainfrom
cristipufu merged 3 commits intomainfrom
Conversation
Add end-to-end tests covering the core run flow (select entrypoint, configure input, execute, verify output) for both the Textual TUI and the web frontend. - 5 Textual pilot tests (app render, greeting run, numbers run, history, navigation) - 4 Playwright browser tests (page load, run + output, traces tab, sidebar history) - Shared MockRuntimeFactory with lightweight greeting/numbers runtimes - pytest-playwright added to dev dependencies - Fix existing test_run_async_raises_when_extras_missing to use a separate thread, avoiding Playwright's event loop contamination Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add `playwright install chromium` step to test workflow - Fix unsorted imports and remove unused ENTRYPOINT_GREETING import - Remove broken skipif marker; let tests run with installed chromium - Add ruff/mypy pre-commit rule to CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25ecd06 to
8011cb7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MockRuntimeFactorywith lightweight greeting and numbers runtimes (no OTel overhead)pytest-playwrightto dev dependenciestest_run_async_raises_when_extras_missingto run in a separate thread, avoiding Playwright's event loop contaminationTest plan
pytest tests/e2e/test_textual_run.py -v— 5 passedpytest tests/e2e/test_web_run.py -v— 4 passedpytest tests/ -v— all 22 tests pass together (no event loop conflicts)🤖 Generated with Claude Code